home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 124 / cd-rom 124.iso / edu / tuxmath / tuxmathscrabble / tuxmathscrabble.exe / asymptopia / Animator.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-16  |  1.3 KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. import os
  5. import pygame
  6. import sys
  7. from pygame.locals import *
  8. from random import random
  9.  
  10. class Animator:
  11.     
  12.     def __init__(self):
  13.         self.characters = { }
  14.         self.maneuvers = { }
  15.  
  16.     
  17.     def add_char(self, name, char):
  18.         self.characters[name] = char
  19.  
  20.     
  21.     def start_maneuver(self, who, which):
  22.         maneuvers = self.maneuvers
  23.         self.characters[who].begin_maneuver(maneuvers[which])
  24.  
  25.     
  26.     def define_maneuver(self, name, maneuver):
  27.         self.maneuvers[name] = maneuver
  28.  
  29.  
  30.